/*
 * TicketInfoCommand.java
 *
 * Created on October 5, 2007, 10:26 AM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package drb;

import java.sql.SQLException;

/**
 *
 * @author Asger
 */
public class TicketInfoCommand extends Command {
    
    public Ticket ticket;
    
    /** Creates a new instance of TicketInfoCommand */
    public TicketInfoCommand() {
    }
    
    public void execute() throws SQLException {
        
        System.out.println("-------------------------------");
        ticket.printDetails();
        ticket.printTransfers();
        ticket.printReservations(connection);
        System.out.println("-------------------------------");
    }
    
}
